#ifndef CONNECTWINDOW_HH
#define CONNECTWINDOW_HH
#include "Gui.hh"
#include "../Network/ClientState.hh"
#include <QWidget>
#include "ui_ConnectWindow.h"

/**
 * \brief Kezdeti ablak.
 *
 * Itt adható meg a szerver neve, portja, és a felhasználói adatok.
 */
class Gui::ConnectWindow: public QWidget {
    Q_OBJECT

    public: ConnectWindow(QWidget *parent = 0);

    private: Ui::ConnectWindowClass ui;

    signals:
    void
    connect_to_server(QString host,u2 port);

    protected slots: void connect_button_handler();

    public slots: void client_state_changed(ClientState state);

    public slots:
    void socket_state_changed(QAbstractSocket::SocketState state);

    public slots: void socket_error(QAbstractSocket::SocketError error);
};

#endif // CONNECTWINDOW_HH
